{% extends "../base.html"%} {% block header_title %}后台管理首页{% end %} {% block static_css %}
<link rel="stylesheet" href="{{ static_url('site/css/home.css') }}" />{% end%} {% block body %}
<div class="row">
    <div class="col-xs-1 col-sm-1 col-md-1 sidebar">
        <div class="user">
            <img src="{{static_url('images/ico-user-header.svg')}}">
            <h5>{{current_user.get('username')}}</h5>
            <a href="/auth/signout"><span class="glyphicon glyphicon-cog"title="用户中心"></span></a>&nbsp;
            <a href="/auth/signout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </a>
        </div>
        <ul class="nav nav-sidebar">
            <li title="首页" class="active">
                <a href="/home">
                    <i class="fa fa-home"></i>
                    <span class="hidden-sm hidden-xs text">首页</span>
                </a>
            </li>
            <li title="申请">
                <a href="/apply/my">
                    <i class="fa fa-clipboard"></i>
                    <span class="hidden-sm hidden-xs text">申请</span>
                </a>
            </li>
            <li title="应用">
                <a href="/app/my">
                    <i class="fa fa-cube"></i>
                    <span class="hidden-sm hidden-xs text">应用</span>
                </a>
            </li>
            <li title="数据">
                <a href="/data">
                    <i class="fa fa-archive"></i>
                    <span class="hidden-sm hidden-xs text">数据集</span>
                </a>
            </li>
            <li title="导出">
                <a href="/records/my">
                    <i class="fa fa-hdd-o"></i>
                    <span class="hidden-sm hidden-xs text">结果集</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main" class="col-xs-11 col-xs-offset-1 col-sm-11 col-sm-offset-1 col-md-11 col-md-offset-1 main">
        <section class="main-news">
            <div class="box">
                <div class="box-body clearfix">
                    <div class="news-hot">
                        <h4>总体说明</h4>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;beta－0.1版
                        </p>
                    </div>
                    <div class="news-list">
                        <ul class="ul">
                            <li></li>
                        </ul>
                    <!-- </div>
                    <div class="news-more"><a href="#" class="btn" target="_blank">论坛&nbsp;&nbsp;<span class="glyphicon glyphicon-arrow-right"></span></a></div> -->
                </div>
            </div>
        </section>
        <div class="box">
            <a href="/data" class="btn btn-primary">快速申请入口</a>
        </div>
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-6">
                <div class="box">
                    <div class="box-title">
                        <h5>运行中应用</h5>
                        <div class="box-tools">
                            <a href="javascript://">
                                <i class="fa fa-navicon"></i>
                            </a>
                        </div>
                    </div>
                    <div class="box-body">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th class="header sortable">
                                        项目名
                                    </th>
                                    <th class="header sortable">
                                        发起时间
                                    </th>
                                    <th class="header sortable">
                                        更新时间
                                    </th>
                                    <th class="header sortable">

                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for each in apps_my %}
                                <tr>
                                    <td>
                                        {{each['reseach']['title']}}
                                    </td>
                                    <td>{{date_format(each['commenttime'])}}</td>
                                    <td>{{date_format(each['updatetime'])}}</td>
                                    <td>
                                        <a href="/app/detail/{{each['_id']}}" class="btn btn-default btn-xs">查看</a>
                                        <a href="/app/desktop/{{each['_id']}}" class="btn btn-default btn-xs">进入</a>
                                    </td>
                                </tr>
                                {%end%}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-6">
                <div class="box">
                    <div class="box-title">
                        <h5>他人的应用</h5>
                        <div class="box-tools">
                            <a href="javascript://">
                                <i class="fa fa-navicon"></i>
                            </a>
                        </div>
                    </div>
                    <div class="box-body">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th class="header sortable">
                                        项目名
                                    </th>
                                    <th class="header sortable">
                                        发起时间
                                    </th>
                                    <th class="header sortable">
                                        更新时间
                                    </th>
                                    <th class="header sortable">

                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for each in apps_other %}
                                <tr>
                                    <td>
                                        {{each['reseach']['title']}}
                                    </td>
                                    <td>{{date_format(each['commenttime'])}}</td>
                                    <td>{{date_format(each['updatetime'])}}</td>
                                    <td>
                                        <a href="/app/detail/{{each['_id']}}" class="btn btn-default btn-xs">查看</a>
                                    </td>
                                </tr>
                                {%end%}
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="box">

                    <div class="box-title">
                        <h5>最新发布的数据</h5>
                        <div class="box-tools">
                            <a href="javascript://">
                                <i class="fa fa-navicon"></i>
                            </a>
                        </div>
                    </div>
                    <div class="box-body">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th class="header sortable">
                                        数据集名
                                    </th>
                                    <th class="header sortable">
                                        来源
                                    </th>
                                    <th class="header sortable">
                                        类型
                                    </th>
                                    <th class="header sortable">
                                        更新时间
                                    </th>
                                    <th class="header sortable">

                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                {%for dataset in datasets%}
                                <tr>
                                    <td>
                                        {{dataset['title']}}
                                    </td>
                                    <td>
                                        {{dataset['from']}}
                                    </td>
                                    <td>{{dataset['dtype']}}</td>
                                    <td>{{date_format(dataset['updatetime'])}}</td>
                                    <td>
                                        <a href="/data/detail/{{dataset['_id']}}" class="btn btn-default btn-xs">查看</a>
                                        <a href="/apply/form/{{dataset['_id']}}" class="btn btn-default btn-xs">申请</a>
                                        <a href="/data/download?key=100.zip" class="btn btn-danger btn-xs">演示图片下载</a>
                                    </td>
                                </tr>
                                {%end%}

                            </tbody>
                        </table>
                    </div>
                </div>

            </div>
            <!-- <div class="col-xs-12 col-sm-12 col-md-6 pd-r">
                <div class="box">
                    <div class="box-body">
                        <h2>导出纪录</h2>
                        <table class="table">
                            <thead>
                                <tr>
                                    <th class="header sortable">
                                        数据集名
                                    </th>
                                    <th class="header sortable">
                                        来源
                                    </th>
                                    <th class="header sortable">
                                        类型
                                    </th>
                                    <th class="header sortable">
                                        更新时间
                                    </th>
                                    <th class="header sortable">

                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>
                                        眼底图像xxxx
                                    </td>
                                    <td>
                                        xxxx部门
                                    </td>
                                    <td>image</td>
                                    <td>2016-04-24 09:34:24</td>
                                    <td>
                                        <a href="data/detail" class="btn btn-default btn-xs">查看</a>
                                        <a href="data/detail" class="btn btn-default btn-xs">申请</a>
                                    </td>
                                </tr>

                            </tbody>
                        </table>
                        <a href="#">更多</a>
                    </div>
                </div>
            </div> -->
        </div>
    </div>
</div>
{% end %} {% block static_js %} {% end %}
